package {
  import flash.display.Sprite;
  import flash.text.TextField;
  import flash.media.Sound;
  import flash.net.URLRequest;

  public class HelloWorld extends Sprite {

    public function HelloWorld() {

      var textField:TextField = new TextField();

      try
      {
	      textField.text = "Hello, world!";
	      addChild(textField);

	      trace("Trace Hello, world!");

	      var snd:Sound = new Sound(new URLRequest("smallSound.mp3"));
	      snd.play();

	      textField.text = "done";
      }
      catch(error:Error)
      {
	textField.text = "Error";
      }
    }
  }
}

